<?php
require './Huluxia.php';
$hlx = new Huluxia($_REQUEST['key']);
//while(true) {
	$postList = $hlx->getCategoryPostList(92,0,1,50,rand(1612018334,time()) * 1000);
	var_dump($postList);
	$post = $postList[rand(0,49)];
	if(strpos($post['title'],"【模型咨询】") !== false && count($post['images']) >= 1) {
		// break;
	}
/*}
$result = $hlx->createPost(92,0,$post['title'],$post['detail'],$post['images']);
$result['post'] = $post;
echo json_encode($result,JSON_UNESCAPED_UNICODE);
*/